package com.example.filecabinet.service;

import com.example.filecabinet.entity.Lattice_info;
import com.example.filecabinet.entity.Lattice_infoExample;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author chengconghui
 * @Description //TODO
 * @Date 10:21 2020/3/23
 **/
public interface Lattice_infoService {
    List<Lattice_info> selectByExample(Lattice_infoExample example);

    int updateByPrimaryKeySelective(Lattice_info record);

    List<Lattice_info> selectEmpTakeLattice(String employeeId, Lattice_info lattice_info);

    List<Lattice_info> selectByDate(String deviceNumber);

    int insertSelective(Lattice_info record);

    void addLattice(int i, String deviceNumber);

    boolean selectLatticeUsing(int oddCount, int newCount, String deviceNumber);

    int deleteByExample(int oddCount, int newCount, String deviceNumber);

    /**
     * 还原格子操作
     */
    int restore(Lattice_info record);


   List<Lattice_info> selectOpenLattice(String deviceNumber);
}
